﻿using System;
using System.Data.SqlClient;
using VirtualTFS.DAL;


public class ConnectionManager
{
    static public bool CheckDatabases()
    {
        bool result = false;

        try
        {
            using (var entity = new Entities(Define.Entityconnstring))
            {
                result = entity.DatabaseExists();
            }
        }
        catch (SqlException)
        {
            //throw;
        }
        return result;
    }
}

